package kr.co.handysoft.common.profiler;

import kr.co.handysoft.common.compress.Archiving;
import net.sf.json.JSONObject;

public class AllInformationCommand extends AbstractCommand{

	@Override
	public String invoke() {
		
		this.command = "ALL";
		
		String retString = null;
		
		JSONObject jsonObj = new JSONObject();
		jsonObj.put("disk", new DiskCommand().invoke());
		jsonObj.put("memory", new MemoryCommand().invoke());
		jsonObj.put("cpu", new CpuCommand().invoke());
		jsonObj.put("env", new EnvCommand().invoke());
		
		return Archiving.send(jsonObj.toString());
	}

}
